<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of page
 *
 * @author b4by
 */
class page extends MY_Controller {

	function __construct() {
		parent::__construct();
		$this->load->model('model_page');
	}

	public function index($id) {
		
		$page= $this->model_page->get_info($id);
		if($page!==FALSE){
			$this->data['site_title']	 = $page->title;
			$this->data['content']	=$page->content;
			$this->data['temp'] = 'page/index';
			$this->loadView();
		}
	}

}

?>
